package com.lanchewuyou.user.driver.yancheui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;

import com.lanchewuyou.user.driver.R;

/**
 * 验车结束展示详情页
 */
public class CaseYancheActivity extends AppCompatActivity implements View.OnClickListener {
    private ImageButton yancheCaseBack, yancheCaseTel, yancheCasePhoto;
    private TextView yancheCaseOwner, yancheCasePhoneNumber, yancheCaseAdd, yancheCaseJiancechang, yancheCaseMarked;
    private Button yancheCaseIknowBtn;


    private Toast toast = null;

    private void showTextToast(String msg) {
        if (toast == null) {
            toast = Toast.makeText(this, msg, Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
        }
        toast.show();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_case_yanche);
        initViews();
    }

    private void initViews() {
        yancheCaseBack = (ImageButton) findViewById(R.id.yanche_case_back);
        yancheCaseBack.setOnClickListener(this);
        yancheCaseTel = (ImageButton) findViewById(R.id.yanche_case_tel_btn);
        yancheCaseTel.setOnClickListener(this);
        yancheCasePhoto = (ImageButton) findViewById(R.id.yanche_case_carema_btn);
        yancheCasePhoto.setOnClickListener(this);
        yancheCaseIknowBtn = (Button) findViewById(R.id.yanche_case_iknow_btn);
        yancheCaseIknowBtn.setOnClickListener(this);
        yancheCaseOwner = (TextView) findViewById(R.id.yanche_case_owner_name);
        yancheCasePhoneNumber = (TextView) findViewById(R.id.yanche_case_phone_number);
        yancheCaseAdd = (TextView) findViewById(R.id.yanche_case_return_add);
        yancheCaseJiancechang = (TextView) findViewById(R.id.yanche_case_jiance_text);
        yancheCaseMarked = (TextView) findViewById(R.id.yanche_case_mark);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.yanche_case_back:

                break;
            case R.id.yanche_case_tel_btn:

                break;
            case R.id.yanche_case_carema_btn:

                break;
            case R.id.yanche_iknow_btn:

                break;
            default:
                break;
        }
    }
}
